import { createApp } from "vue";
//引入全局样式文件
import "./style/index.scss";
import App from "./App.vue";
//引入路由文件
import router from "./router/index";
//引入pina
import pinia from "@/stores/index";
//引入pina持久化插件
import { createPersistedState } from "pinia-persistedstate-plugin";
//引入路由鉴权文件
import "./permission";

const app = createApp(App);
const persist = createPersistedState();
//将各种实例挂载到全局
app.use(pinia);
pinia.use(persist);
app.use(router);
app.mount("#app");
